package com.music.pojo;

import com.laoxuai.ibatis.annotation.Column;
import com.laoxuai.ibatis.annotation.Id;
import com.laoxuai.ibatis.annotation.Table;
import java.io.Serializable;

import java.lang.Integer;
import java.lang.String;
import java.sql.Date;
import java.util.List;


@Table(value="t_playlist")
public class Playlist implements Serializable{

	@Id
    @Column(value = "id")
	private Long id; //
    @Column(value = "user_id")
	private Integer userId; // 
    @Column(value = "name")
	private String name; // 
    @Column(value = "description")
	private String description; // 
    @Column(value = "cover_img_url")
	private String coverImgUrl; // 
    @Column(value = "play_count")
	private Integer playCount; //
	@Column(value = "status")
	private Integer status;
    @Column(value = "create_time")
	private Date createTime; //
    @Column(value = "update_time")
	private Date updateTime; //

	private List<Integer> tags;// 标签id

	private List<Music> musicList;// 歌曲

	public List<Music> getMusicList() {
		return musicList;
	}

	public void setMusicList(List<Music> musicList) {
		this.musicList = musicList;
	}

	public List<Integer> getTags() {
		return tags;
	}

	public void setTags(List<Integer> tags) {
		this.tags = tags;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}


	public String getCoverImgUrl() {
		return coverImgUrl;
	}

	public void setCoverImgUrl(String coverImgUrl) {
		this.coverImgUrl = coverImgUrl;
	}


	public Integer getPlayCount() {
		return playCount;
	}

	public void setPlayCount(Integer playCount) {
		this.playCount = playCount;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "Playlist{" +
				"id=" + id +
				", userId=" + userId +
				", name='" + name + '\'' +
				", description='" + description + '\'' +
				", coverImgUrl='" + coverImgUrl + '\'' +
				", playCount=" + playCount +
				", createTime=" + createTime +
				", updateTime=" + updateTime +
				", status=" + status +
				'}';
	}
}
